<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
	initEditor();
}

if ((mosCountModules( 'user1' )) && (mosCountModules( 'user2' ))) {
//if both modules are loaded, we need a 50%-layout for them
	$usera = 'user1';
	$userb = 'user2';
} else if ((mosCountModules( 'user1' )) || (mosCountModules( 'user2' ))) {
// if only one, then 100% no matter which one.
	$usera = 'user3';
	$userb = 'user3';
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site; ?>/templates/m8/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>

<body>


<div id="page">
	<div id="superbar"><div id="searchbar">Cerca <input type="text" style="border:1px solid"></div></div>
	
	<div id="header"><img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/header.jpg" style="width:350px;height:87px"/></div>
	<div id="menutop">
		<div class="menutop_btn"><a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/home.jpg" id="menubtn_home" style="width:70px;height:25px"/>
		</a></div>
		<div class="menutop_btn"><a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/iscriviti.jpg" id="menubtn_iscriviti" style="width:67px;height:25px"/>
		</a></div>
		<div class="menutop_btn"><a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/entra.jpg" id="menubtn_entra" style="width:58px;height:25px"/>
		</a></div>
		<div class="menutop_btn"><a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/about.jpg" id="menubtn_about" style="width:71px;height:25px"/>
		</a></div>
	</div>
	<div id="dividerbar"></div>
	<div id="sectionsbar">
		<div class="section_btn"><a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/bussola.png" id="section_btn_bussola" style="width:36px;height:36px">
		<div class="section_txt_bussola">Bussola</div>
		</a></div>
		<div class="section_btn">
		<a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/scrittura.png" id="section_btn_scrittura" style="width:36px;height:36px">
		<div class="section_txt_scrittura">Scrittura</div>
		</a></div>
		<div class="section_btn">
		<a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/musica.png" id="section_btn_musica" style="width:36px;height:36px">
		<div class="section_txt_musica">Musica</div>
		</a></div>
		<div class="section_btn">
		<a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/arti.png" id="section_btn_artivisive" style="width:36px;height:36px">
		<div class="section_txt_artivisive">Arti Visive</div>
		</a></div>
		<div class="section_btn">
		<a href="#">
			<img src="<?php echo $mosConfig_live_site; ?>/templates/m8/images/piazza.png" id="section_btn_piazza" style="width:36px;height:36px">
		<div class="section_txt_piazza">Piazza</div>
		</a>
		</div>
		
	</div>
	<div id="bg">
		<div id="sidebar">		<?php mosLoadModules('left');?>		</div>			<div id="content">
		<?php mosMainBody(); ?>		</div>			<div id="sidebar-2">		<?php mosLoadModules('right');?>		</div>
		<!-- end content -->
		
		<div style="clear: both;">&nbsp;</div>

		<div id="footer">			<?php include_once( $mosConfig_absolute_path .'/includes/footer.php');?>		</div>		<div id="superbar">&nbsp;</div>
	</div>
</div>


</body>
</html>